package com.borya.model.db;
/**
 * 平台的用户信息
 * @author lhp
 *
 */
public class User {

	private String userId ;
	private String dealerId;
	private int isMain;
	private long createTime;
	private long tmsi;
	private String osVersion ;
	private String appVersion ;
	private String osType ;
	private String phoneType ;
	private String net;
	private String packageName;
	private String cityCode;
	private String cityName;
	private String applicationID;
	private String inviteCode ;
	private String userName;
	private long lastTime;
	private String alipayUserId;
	private String alipayUserName;
	private String weixinUserId;
	/*** 用户类型(tb_user_type) ***/
	private int userTypeId;
	private int privilegeType;
	// 用户最后一次成功请求ip
	private String hostIp;
	private String longitude;
	private String latitude;
	private String phone;
    //=======秦波新加====服务密码====
    private String password;

	private long leftFee;
	private long deduction_fee;//赠送余额
	private int merchant_attribute;//商户卖卡权限 1 : A 远特发展线	2 : B 联通发展线	3 : C A申请联通卡权限	4 : D B申请远特卡权限
	private int flag;//商户是否被删除 -1注销

	private int sourceType;//1卡盟app2远特时空
	private UserTokenInfo tokenInfo;

	private String merchantId;
	private int detailType;
    private String hintCont; // 温馨提示

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getDetailType() {
		return detailType;
	}

	public void setDetailType(int detailType) {
		this.detailType = detailType;
	}

	public String getAlipayUserName() {
		return alipayUserName;
	}

	public void setAlipayUserName(String alipayUserName) {
		this.alipayUserName = alipayUserName;
	}

	public String getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	public int getSourceType() {
		return sourceType;
	}

	public void setSourceType(int sourceType) {
		this.sourceType = sourceType;
	}

	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getDealerId() {
		return dealerId;
	}
	public void setDealerId(String dealerId) {
		this.dealerId = dealerId;
	}
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	public long getTmsi() {
		return tmsi;
	}
	public void setTmsi(long tmsi) {
		this.tmsi = tmsi;
	}
	public String getOsVersion() {
		return osVersion;
	}
	public void setOsVersion(String osVersion) {
		this.osVersion = osVersion;
	}
	public String getAppVersion() {
		return appVersion;
	}
	public void setAppVersion(String appVersion) {
		this.appVersion = appVersion;
	}
	public String getOsType() {
		return osType;
	}
	public void setOsType(String osType) {
		this.osType = osType;
	}
	public String getPhoneType() {
		return phoneType;
	}
	public void setPhoneType(String phoneType) {
		this.phoneType = phoneType;
	}
	public String getNet() {
		return net;
	}
	public void setNet(String net) {
		this.net = net;
	}
	public String getPackageName() {
		return packageName;
	}
	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}
	public String getCityCode() {
		return cityCode;
	}
	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}
	public String getCityName() {
		return cityName;
	}
	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	public String getApplicationID() {
		return applicationID;
	}
	public void setApplicationID(String applicationID) {
		this.applicationID = applicationID;
	}
	public String getInviteCode() {
		return inviteCode;
	}
	public void setInviteCode(String inviteCode) {
		this.inviteCode = inviteCode;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public long getLastTime() {
		return lastTime;
	}
	public void setLastTime(long lastTime) {
		this.lastTime = lastTime;
	}
	public String getAlipayUserId() {
		return alipayUserId;
	}
	public void setAlipayUserId(String alipayUserId) {
		this.alipayUserId = alipayUserId;
	}
	public String getWeixinUserId() {
		return weixinUserId;
	}
	public void setWeixinUserId(String weixinUserId) {
		this.weixinUserId = weixinUserId;
	}
	public int getUserTypeId() {
		return userTypeId;
	}
	public void setUserTypeId(int userTypeId) {
		this.userTypeId = userTypeId;
	}
	public int getPrivilegeType() {
		return privilegeType;
	}
	public void setPrivilegeType(int privilegeType) {
		this.privilegeType = privilegeType;
	}
	public long getLeftFee() {
		return leftFee;
	}
	public void setLeftFee(long leftFee) {
		this.leftFee = leftFee;
	}
	public int getIsMain() {
		return isMain;
	}
	public void setIsMain(int isMain) {
		this.isMain = isMain;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}

	public long getDeduction_fee() {
		return deduction_fee;
	}
	public void setDeduction_fee(long deduction_fee) {
		this.deduction_fee = deduction_fee;
	}
	public int getMerchant_attribute() {
		return merchant_attribute;
	}
	public void setMerchant_attribute(int merchant_attribute) {
		this.merchant_attribute = merchant_attribute;
	}
	public int getFlag() {
		return flag;
	}
	public void setFlag(int flag) {
		this.flag = flag;
	}
	public String getHostIp() {
		return hostIp;
	}
	public void setHostIp(String hostIp) {
		this.hostIp = hostIp;
	}
	public String getLongitude() {
		return longitude;
	}
	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	public String getLatitude() {
		return latitude;
	}
	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	public UserTokenInfo getTokenInfo() {
		return tokenInfo;
	}
	public void setTokenInfo(UserTokenInfo tokenInfo) {
		this.tokenInfo = tokenInfo;
	}

    public String getHintCont() {
        return hintCont;
    }

    public void setHintCont(String hintCont) {
        this.hintCont = hintCont;
    }

    public String toString() {
		return "[userId=" + userId + ", dealerId=" + dealerId
				+ ", isMain=" + isMain + ", createTime=" + createTime
				+ ", tmsi=" + tmsi + ", osVersion=" + osVersion
				+ ", appVersion=" + appVersion + ", osType=" + osType
				+ ", phoneType=" + phoneType + ", net=" + net
				+ ", packageName=" + packageName + ", cityCode=" + cityCode
				+ ", cityName=" + cityName + ", applicationID=" + applicationID
				+ ", inviteCode=" + inviteCode + ", userName=" + userName
				+ ", lastTime=" + lastTime + ", alipayUserId=" + alipayUserId
				+ ", weixinUserId=" + weixinUserId + ", userTypeId="
				+ userTypeId + ", privilegeType=" + privilegeType + ", hostIp="
				+ hostIp + ", longitude=" + longitude + ", latitude="
				+ latitude + ", phone=" + phone + ", leftFee=" + leftFee
				+ ", deduction_fee=" + deduction_fee + ", merchant_attribute="
				+ merchant_attribute + ", flag=" + flag + ", tokenInfo="
                + tokenInfo + ",hintCont=" + hintCont + "]";
	}


	public class UserTokenInfo {

		private String osVersion;
		private String appVersion;
		private String ostype;
		private String phonetype;
		private String net;
		private String packageName;
		private String applicationID;
		private long lastTime;
		private String host;
		// 纬度
		private String latitude;
		// 经度
		private String longitude;
		private String imei = "";
		/*** client的定位是否打开 ****/
		private int locationFlag = LocationFlag.CLOSE;

		public String getOsVersion() {
			return osVersion;
		}
		public void setOsVersion(String osVersion) {
			this.osVersion = osVersion;
		}
		public String getAppVersion() {
			return appVersion;
		}
		public void setAppVersion(String appVersion) {
			this.appVersion = appVersion;
		}
		public String getOstype() {
			return ostype;
		}
		public void setOstype(String ostype) {
			this.ostype = ostype;
		}
		public String getPhonetype() {
			return phonetype;
		}
		public void setPhonetype(String phonetype) {
			this.phonetype = phonetype;
		}
		public String getNet() {
			return net;
		}
		public void setNet(String net) {
			this.net = net;
		}
		public String getPackageName() {
			return packageName;
		}
		public void setPackageName(String packageName) {
			this.packageName = packageName;
		}
		public String getApplicationID() {
			return applicationID;
		}
		public void setApplicationID(String applicationID) {
			this.applicationID = applicationID;
		}
		public long getLastTime() {
			return lastTime;
		}
		public void setLastTime(long lastTime) {
			this.lastTime = lastTime;
		}
		public String getHost() {
			return host;
		}
		public void setHost(String host) {
			this.host = host;
		}
		public String getLatitude() {
			return latitude;
		}
		public void setLatitude(String latitude) {
			this.latitude = latitude;
		}
		public String getLongitude() {
			return longitude;
		}
		public void setLongitude(String longitude) {
			this.longitude = longitude;
		}
		public String getImei() {
			return imei;
		}
		public void setImei(String imei) {
			this.imei = imei;
		}
		public int getLocationFlag() {
			return locationFlag;
		}
		public void setLocationFlag(int locationFlag) {
			this.locationFlag = locationFlag;
		}

		public String toString() {
			return "[osVersion=" + osVersion + ", appVersion="
					+ appVersion + ", ostype=" + ostype + ", phonetype="
					+ phonetype + ", net=" + net + ", packageName="
					+ packageName + ", applicationID=" + applicationID
					+ ", lastTime=" + lastTime + ", host=" + host
					+ ", latitude=" + latitude + ", longitude=" + longitude
					+ ", imei=" + imei + ", locationFlag=" + locationFlag + "]";
		}

	}
	/***
	 * 定位是否打开
	 * @author borya
	 *
	 */
	public abstract interface LocationFlag{

		/*** 打开  ***/
		int CLOSE = 0;
		/*** 关闭 ***/
		int OPEN = 1;
	}
}